﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.ShoppingMall
{
    [SugarTable]
    public class ShoppingMallProductSpecification
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; }

        /// <summary>
        /// 商品UUID
        /// </summary>
        public Guid ShoppingMallProductUUID { get; set; }

        /// <summary>
        /// 商品价格 - 付款的价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 拼团价格 - 拼团购买的价格
        /// </summary>
        public decimal GroupPrice { get; set; }

        /// <summary>
        /// 原始价格 - 非购买价格
        /// </summary>
        public decimal OriginalPrice { get; set; }

        /// <summary>
        /// 商品规格名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int Count { get; set; } = 1;

        /// <summary>
        /// 商品状态 - 活动/下架
        /// </summary>
        public Status IsActive { get; set; } = Status.Enable;

        /// <summary>
        /// 是否删除  
        /// </summary>
        public Status IsDeleted { get; set; } = Status.Disable;

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public Guid CreateUserUUID { get; set; }

        public DateTime UpdateTime { get; set; } = DateTime.Now;

        public Guid UpdateUserUUID { get; set; }
    }
}
